import request from '@/utils/request'

// 查询采购出库列表
export function listRyPurchaseOut(query) {
  return request({
    url: '/purchase/ryPurchaseOut/list',
    method: 'get',
    params: query
  })
}

// 查询采购出库详细
export function getRyPurchaseOut(id) {
  return request({
    url: '/purchase/ryPurchaseOut/' + id,
    method: 'get'
  })
}

// 新增采购出库
export function addRyPurchaseOut(data) {
  return request({
    url: '/purchase/ryPurchaseOut',
    method: 'post',
    data: data
  })
}

// 修改采购出库
export function updateRyPurchaseOut(data) {
  return request({
    url: '/purchase/ryPurchaseOut',
    method: 'put',
    data: data
  })
}

// 删除采购出库
export function delRyPurchaseOut(id) {
  return request({
    url: '/purchase/ryPurchaseOut/' + id,
    method: 'delete'
  })
}
